package com.tg.mapper;

import com.tg.pojo.User;
import org.apache.ibatis.annotations.*;

public interface UserMapper {

    @Select("select * from user where username=#{userName} and password=#{passWord}")
    User select(@Param("userName") String username, @Param("passWord") String password);

    @Select("select * from user where username=#{userName}")
    User selecByUserName(String username);

    @Insert("insert into user values (null,#{userName},#{passWord})")
    int insert(@Param("userName") String username, @Param("passWord") String password);
}
